package com.kingsoft.dc.khaos.module.spark.metadata.preprocess.transform

/**
  * create by yansu on 2019/07/22 19:44
  */
case class SorterInfo(extract_fields: List[ExtractOptionInfo] = null,
                      sort_field: List[SorterOption] = null,
                      advanced_options: SorterAdvancedInfo = null)

case class ExtractOptionInfo(field: String = "",
                             data_type: String = "",
                             length: String = "")

case class SorterOption(filed: String = "",
                        sort_type: String = "")

case class SorterAdvancedInfo(cache_option: cacheInfo,
                              partition: partitionInfo,
                              top: topInfo)

case class SorterCacheInfo(on_off: Boolean = false,
                           option: String = "")

case class SorterPartitionInfo(on_off: Boolean = false,
                               nums: String = "")

case class topInfo(on_off: Boolean = false,
                   topn: String = "")
